
package com.xbongbong.saas.domain.entity;

import com.xbongbong.paas.toolbox.util.DateTimeUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
* @author autoGen
* @time 2018-11-12 20:02:45
*/
@Getter
@Setter
@ToString
public class SurveyAnswerEntity implements Serializable{

	/** Comment for <code>serialVersionUID</code> */
	private static final long serialVersionUID = -8294526272505309936L;
	public SurveyAnswerEntity(){
		this.updateTime = DateTimeUtil.getInt();
		this.addTime = DateTimeUtil.getInt();
		this.del = 0;
	}

	public SurveyAnswerEntity(SurveyAnswerUserEntity surveyAnswerUser, Integer questionId, String answer, String memo){
		this();
		this.surveyAnswerUserId = surveyAnswerUser.getId();
		this.surveyId = surveyAnswerUser.getSurveyId();
		this.questionId = questionId;
		this.corpid = surveyAnswerUser.getCorpid();
		this.userId = surveyAnswerUser.getUserId();
		this.answer = answer;
		this.memo = memo;
	}
	//========== properties ==========

	/**
	* 主键id
	*/
	private Integer id;
	/**
	 * tb_survey_answer_user中对应的id
	 */
	private Integer surveyAnswerUserId;
	/**
	* 问卷id（暂时默认1）
	*/
	private Integer surveyId;
	/**
	* 问题id(暂时默认编号)
	*/
	private Integer questionId;
	/**
	* 提交问卷的公司id
	*/
	private String corpid;
	/**
	* 提交问卷人userId
	*/
	private String userId;
	/**
	* 答案
	*/
	private String answer;
	/**
	 * 吐槽、建议
	 */
	private String memo;
	/**
	* 添加时间
	*/
	private Long addTime;
	/**
	* 更新时间
	*/
	private Long updateTime;
	/**
	* 删除标志位
	*/
	private Integer del;


}

